<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title id="t1">v-model 数据双向绑定</title>
</head>
<body>
	
	<div id="app1" class="capp1">
		hello vue!
		<input type="text" v-model="msg">
		{{msg}}
	</div>

	<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	<script>
		var data = {msg:"Hi There!"}
		// new Vue({}) 大小写敏感
		var app = new Vue({
			el:"#app1",
			// el:".capp1", // 支持类选择器
			data:data
		})
	</script>

</body>
</html>